package com.cmwa.solution.sys.msg.vo;

public class OperationResultVo {
	private String resultCode;
	private String resultContent;
	private String detailContent;
	
	
	public OperationResultVo() {}
	public OperationResultVo(String resultCode, String resultContent,String detailContent) {
		this.resultCode = resultCode;
		this.resultContent = resultContent;
		this.detailContent = detailContent;
	}

	
	public String getResultCode() {
		return resultCode;
	}
	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}
	public String getResultContent() {
		return resultContent;
	}
	public void setResultContent(String resultContent) {
		this.resultContent = resultContent;
	}
	public String getDetailContent() {
		return detailContent;
	}
	public void setDetailContent(String detailContent) {
		this.detailContent = detailContent;
	}
	public void addDetailContent(String detailContent) {
		if(detailContent!=null && !"".equalsIgnoreCase(detailContent.trim())){
			if(this.detailContent == null){
				this.detailContent = detailContent;
			}else{
				this.detailContent += detailContent;
			}
		}
	}
	
	
	@Override
	public String toString() {
		return "OperationResultVo [resultCode=" + resultCode
				+ ", resultContent=" + resultContent + ", detailContent="
				+ detailContent + "]";
	}
}
